package com.demo.api.service.logs;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.api.vo.logs.LogReq;
import com.demo.api.vo.logs.LogRes;
import com.demo.client.model.log.SysLog;
import com.demo.core.enums.ErrorEnum;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ISysLogService {
    IPage<LogRes.Pages> getLogPage(Page<SysLog> page, LogReq req);

    void createErrorLog(HttpServletRequest request, ErrorEnum errorEnum,String msg);

    List<?> getParam(Map<String, String[]> map);

    Integer getType(boolean b);

    Long getUserId(boolean b);
}
